var express = require('express');
var router = express.Router();
//引入集合模型
const { teachersModel } = require("../models/teachersModel");


//二级路由处理代码
//获取所有班级数据
router.get('/',async function(req, res, next) {
  let teachers = await teachersModel.find({});
  res.send({ teachers });
});


module.exports = router;
